Bridging Curry and Church's typing style

نویسندگان

  • Fairouz Kamareddine
  • Jonathan P. Seldin
  • Joe B. Wells
چکیده

There are two versions of type assignment in the λ-calculus: Church-style, in which the type of each variable is fixed, and Currystyle (also called “domain free”), in which it is not. As an example, in Church-style typing, λx:A.x is the identity function on type A, and it has type A → A but not B → B for a type B different from A. In Currystyle typing, λx.x is a general identity function with type C → C for every type C. In this paper, we will show how to interpret in a Currystyle system every Pure Type System (PTS) in the Church-style without losing any typing information. We will also prove a kind of conservative extension result for this interpretation, a result which implies that for most consistent PTSs of the Church-style, the corresponding Curry-style system is consistent. We will then show how to interpret in a system of the Church-style (a modified PTS, stronger than a PTS) every PTS-like system in the Curry style.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the relation between Church - style typing and Curry - style typing : Extended Abstract ∗

There are two versions of type assignment in λ-calculus: Church-style, in which the type of each variable is fixed, and Curry-style (also called “domain free”), in which it is not. As an example, in Church-style typing, λx : A . x is the identity function on type A, and it has type A → A but not B → B for a type B different from A. In Curry-style typing, λx.x is a general identity function with...

متن کامل

Uniqueness Typing in Natural Deduction Style

We present two type systems for graph rewriting: conventional typing and (polymorphic) uniqueness typing. The latter is introduced as a natural extension of simple algebraic and higher-order uniqueness typing. The systems are given in natural deduction style using an inductive syntax of graph denotations with familiar constructs such as let and case. The conventional system resembles traditiona...

متن کامل

Typability and Type Checking in the Second-Order -Calculus Are Equivalent and Undecidable

Girard and Reynolds independently invented the second-order polymorphically typed lambda calculus, known as System F, to handle problems in logic and computer programming language design, respectively. Viewing F in the Curry style, which associates types with untyped lambda terms, raises the questions of typability and type checking. Typability asks for a term whether there exists some type it ...

متن کامل

Uniqueness Typing for Functional Languages with Graph Rewriting Semantics

We present two type systems for term graph rewriting: conventional typing and (polymorphic) uniqueness typing. The latter is introduced as a natural extension of simple algebraic and higher-order uniqueness typing. The systems are given in natural deduction style using an inductive syntax of graph denotations with familiar constructs such as let and case. The conventional system resembles tradi...

متن کامل

Curry-Style Types for Nominal Terms

We define a rank 1 polymorphic type system for nominal terms, where typing environments type atoms, variables and function symbols. The interaction between type assumptions for atoms and substitution for variables is subtle: substitution does not avoid capture and so can move an atom into multiple different typing contexts. We give typing rules such that principal types exist and are decidable ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Applied Logic

دوره 18  شماره 

صفحات  -

تاریخ انتشار 2016